//
//  BookListTableViewCell.m
//  FunRead
//
//  Created by  King on 15/5/22.
//  Copyright (c) 2015年 华东伟. All rights reserved.
//

#import "BookListTableViewCell.h"

@implementation BookListTableViewCell
- (void)dealloc
{
    [_categoryImage release];
    [_categoryName release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.categoryImage = [[UIImageView alloc] initWithFrame:CGRectMake(18, 10, 30, 30)];
        [self.contentView addSubview:_categoryImage];
        [_categoryImage release];
        
        self.categoryName = [[UILabel alloc] initWithFrame:CGRectMake(50, 10, self.frame.size.width, 30)];
        _categoryName.font = [UIFont boldSystemFontOfSize:18];
        _categoryName.textColor = [UIColor grayColor];
        [self.contentView addSubview:_categoryName];
        [_categoryName release];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
